import request from '/@/api/request'
/** 接口分组管理 */

/** 新增分组 */
export const requestAddGroup = (data: AddGroupTypes.IRequest) => {
  return request.post<IBaseResponse<AddGroupTypes.IResponse>>('/manage/openApiGroup/addGroup', data)
}
/** 递归查询分组树 */
export const requestRecursionGroupTree = (data: RecursionGroupTreeTypes.IRequest) => {
  return request.post<IBaseResponse<RecursionGroupTreeTypes.IResponse[]>>('/manage/openApiGroup/recursionGroupTree', data)
}
/** 编辑分组 */
export const requestEditGroup = (data: EditGroupTypes.IRequest) => {
  return request.post<IBaseResponse<EditGroupTypes.IResponse>>('/manage/openApiGroup/editGroup', data)
}
/** 删除分组 */
export const requestDeleteGroup = (data: DeleteGroupTypes.IRequest) => {
  return request.post<IBaseResponse<DeleteGroupTypes.IResponse>>('/manage/openApiGroup/deleteGroup', data)
}
